import React from 'react';
import { BrowserRouter, Route } from 'react-router-dom';
import Header from './common/header';
import GlobalStyle from './style';
import Detail from './pages/detail';
import Home from './pages/home';
import Login from './pages/login';

const App = () => (
  <>
    <GlobalStyle />
    <BrowserRouter>
      <Header />
      <Route path="/detail" exact><Detail /></Route>
      <Route path="/home" exact><Home /></Route>
      <Route path="/login" exact><Login /></Route>
    </BrowserRouter>
  </>
);

export default App;
